﻿using Microsoft.Reporting.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BLevy.UI
{
    public partial class frmFormasPagoReporte : Form
    {
        public frmFormasPagoReporte()
        {
            InitializeComponent();
        }

        public DataTable tablaFormasPago;

        private void frmFormasPagoReporte_Load(object sender, EventArgs e)
        {
            try
            {
                ReportDataSource rds = new ReportDataSource();

                rds = new ReportDataSource("NombreDelConjuntoDeDatos", tablaFormasPago);

                this._report.LocalReport.ReportEmbeddedResource = "Proyecto.Reportes.Reporte.rdlc";

                this._report.LocalReport.DataSources.Add(rds);

                this._report.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
                this._report.RefreshReport();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}
